import RequestAPI from './RequestApi.js';


export default {
    queryProcessDefPage(params){
        return RequestAPI.post("/camundaManager/queryProcessDefPage",params)
    },
    queryProcessDefList(params){
        return RequestAPI.post("/camundaManager/queryProcessDefList",params)
    },
    deleteProcessDefById(processDefId){
        return RequestAPI.get(`/camundaManager/deleteProcessDefById/${processDefId}`)
    },
    deleteProcDefDeployById(processDefId){
        return RequestAPI.post(`/camundaManager/deleteProcDefDeployById/${processDefId}`)
    },
    startProcess(params){
        return RequestAPI.post(`/camundaManager/startProcess`,params)
    },
    queryProcessInstancePage(params){
        return RequestAPI.post(`/camundaManager/queryProcessInstancePage`,params)
    },
    queryProcessInstanceDetailByInstanceId(processInstanceId){
        return RequestAPI.get(`/camundaManager/queryProcessInstanceDetailByInstanceId/${processInstanceId}`) 
    },
    completeTask(params){
        return RequestAPI.post(`/camundaManager/completeTask`,params) 
    },
    queryTaskByTaskId(taskId){
        return RequestAPI.get(`/camundaManager/queryTaskByTaskId/${taskId}`) ;
    },
    queryVariableByProcessInstanceId(id){
        return RequestAPI.get(`/camundaManager/queryVariableByProcessInstanceId/${id}`) ;
    },
    queryVariableByTaskId(taskId){
        return RequestAPI.get(`/camundaManager/queryVariableByTaskId/${taskId}`) 
    },
    addVariableToProcessInstance(params){
        return RequestAPI.post(`/camundaManager/addVariableToProcessInstance`,params) 
    },
    addVariableToTask(params){
        return RequestAPI.post(`/camundaManager/addVariableToTask`,params) 
    },
    suspendsProcessInstance(processInstanceId){
        return RequestAPI.post(`/camundaManager/suspendsProcessInstance/${processInstanceId}`) 
    },
    activateProcessInstance(processInstanceId){
        return RequestAPI.post(`/camundaManager/activateProcessInstance/${processInstanceId}`) 
    },
    cancelProcessInstance(processInstanceId){
        return RequestAPI.post(`/camundaManager/cancelProcessInstance/${processInstanceId}`) 
    },
    addUserToTask(params){
        return RequestAPI.post(`/camundaManager/addUserToTask`,params) 
    },
    removeUserToTask(params){
        return RequestAPI.post(`/camundaManager/removeUserToTask`,params) 
    },
    queryTaskPage(params){
        return RequestAPI.post(`/camundaManager/queryTaskPage`,params) 
    },
    
    

    

    

}